<?php

class stabilityTestModel extends modelBase {
	
	protected $name = 'stabilityTest';
	protected $dbLink = true;
	protected $stable = true;
	protected $cols = array(
		'name' => array('type'=>'VARCHAR', 'length'=>16),
		'favoriteFoods' => array('hasMany' => 'stabilityTestFavoriteFoods')
	);
	protected $validations = array(
		'name' => array(
			array('notEmpty', 'message' => 'This person must have a name!')
		),
		'favoriteFoods' => array(
			array('mustHave', 1, 'message' => 'You must select at least one favorite food!')
		)
	);
}

?>
